const Sequelize = require('sequelize')

exports.modelName = 'user'; // 模型名称

exports.options = { // 表配置信息
  tableName: 'v_user',
  timestamps: false,
};

exports.attributes = { // 表的各种字段与其对应的属性
  mobile: {
    type: Sequelize.STRING(20),
  },
  password: {
    type: Sequelize.STRING(64),
    allowNull: false
  },
  username: {
    type: Sequelize.STRING(50),
    unique: true,
    allowNull: false,
  },
  email: Sequelize.STRING(50),
};
